<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		
		var a = 123;

		var b = '123';


		/*

		if(a==b){
			alert('相等');
		}

		双等于会做类型转换，弹出相等

		*/

		if(a===b){
			alert('相等');
		}
		else
		{
			alert('不相等');
		}



	</script>
</head>
<body>
	
</body>
</html>